home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / gfx / 3d / rayshade40_enh2.lha / ENHANCE / rotspline.doc < prev    next >
Text File  |  1992-04-04  |  1KB  |  39 lines

  1. This is an extension to release 4.0 of Rayshade to enable solids of
  2. revoloution to be rendered.
  3.  
  4. The curve that is rotated is of the following form :-
  5.  
  6.     r^2 = c[3]*x^3 + c[2]*x^2 + c[1]*x + c[0]
  7.  
  8. Either the coefficents themselves or the radius and gradient of the ends of
  9. the curve can be specified. (See Examples/vase.ray)
  10.  
  11. Syntax...
  12.  
  13.   rotspline [<Surface>] Xbase Ybase Zbase Xapex Yapex Zapex
  14.             coeffs c[3] c[2] c[1] c[0]
  15.  
  16. or...
  17.  
  18.   rotspline [<Surface>] Xbase Ybase Zbase Rbase Gbase
  19.                         Xapex Yapex Zapex Rapex Gapex
  20.  
  21. where Xbase Ybase Zbase is the position of the center of the centre of one
  22. end and Xapex Yapex Zapex is the centre of the other.  The word coeffs must
  23. be included in the first method.  Rbase is the radius at the base and Gbase
  24. is the gradient at the base.
  25.  
  26. Files included are :-
  27.     libray/libobj/rotspline.c - The object routines.
  28.     libray/libobj/rotspline.h - The object definitions.
  29.     libray/libobj/Makefile.SH - Makefile for libobj.
  30.     libshade/yacc.y           - Version with rotspline code in.
  31.     Examples/vase.ray         - Example file with a vase.
  32.     Examples/vase2.ray        - Same vase defined the other way.
  33.  
  34. It will be neccesary to un-tar the files and then do a Reconfigure.
  35.  
  36. Gerald Iles.
  37.  
  38. Email : ilesg@uk.ac.man.cs.p4
  39.